package com.platform.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.ApiActivityRecordMapper;
import com.platform.entity.ActivityRecordVo;
 
/**
 * 活动报名记录表Service实现类
 *
 * @author czj
 * @email 729618941@qq.com
 * @date 2018-11-08 16:51:37
 */
@Service 
public class ApiActivityRecordService  {
    @Autowired
    private ApiActivityRecordMapper activityRecordDao;

    
    public ActivityRecordVo queryObject(Integer id) {
        return activityRecordDao.queryObject(id);
    }

    
    public List<ActivityRecordVo> queryList(Map<String, Object> map) {
        return activityRecordDao.queryList(map);
    }

    
    public int queryTotal(Map<String, Object> map) {
        return activityRecordDao.queryTotal(map);
    }

    
    public int save(ActivityRecordVo activityRecord) {
        return activityRecordDao.save(activityRecord);
    }

    
    public int update(ActivityRecordVo activityRecord) {
        return activityRecordDao.update(activityRecord);
    }

    
    public int delete(Integer id) {
        return activityRecordDao.delete(id);
    }

    
    public int deleteBatch(Integer[]ids) {
        return activityRecordDao.deleteBatch(ids);
    }
}
